Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the scheduler panic whenever the GPU is lost on node #306

Merged
merged 5 commits into from
Jul 8, 2019

Conversation

william-wang
Copy link
Member

What this PR does / why we need it:
The volcano-sh/scheduler panics when startup whever the GPU is lost on nodes.
The cause is that the GPU resource descreaced, the node.idle <task.Req. The panic happened
when ni.Idle.Sub(ti.Resreq). This PR is used to fix the issue.

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #294

Special notes for your reviewer:

@volcano-sh-bot
Copy link
Contributor

Welcome @william-wang!

It looks like this is your first PR to volcano-sh/volcano 🎉.

Thank you, and welcome to Volcano. 😃

@volcano-sh-bot volcano-sh-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 8, 2019
@TravisBuddy
Copy link

Travis tests have failed

Hey @william-wang,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 3cb72fa0-a173-11e9-b4a0-0f4450928f2b

Copy link
Collaborator

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@william-wang Could you add more comments why this can cause a panic?

ni.Releasing.Add(ti.Resreq)
ni.Idle.Sub(ti.Resreq)
case Pipelined:
ni.Releasing.Sub(ti.Resreq)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this face the same problem?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, So I deleted this line and replace it to line 191-193.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@william-wang Could you add more comments why this can cause a panic?
In customer's environment, when the GPU was lost. the ni.Idle decreased and the value was less than ti.Resreq. Then the panic happened in Sub func. So we need to add a judgement before the execution of ni.Idle.Sub(ti.Resreq).

@k82cn
Copy link
Member

k82cn commented Jul 8, 2019

/lgtm
/approve

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: k82cn, william-wang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 8, 2019
@volcano-sh-bot volcano-sh-bot merged commit 3f264d4 into volcano-sh:master Jul 8, 2019
@k82cn
Copy link
Member

k82cn commented Jul 9, 2019

@asifdxtreme , please help to cherry-pick this one to kube-batch :)

wangyuqing4 pushed a commit to wangyuqing4/volcano-1 that referenced this pull request Jul 9, 2019
Enable LeaderElect for both scheduler and controller
@asifdxtreme
Copy link
Contributor

@william-wang Can you please take out some time and sign cncf-cla https://github.com/kubernetes/community/blob/master/CLA.md#the-contributor-license-agreement , this PR's needs to be cherry picked to kube-batch and kube-batch has mandatory check for cncf-cla

@k82cn
Copy link
Member

k82cn commented Jul 9, 2019

@asifdxtreme , I think we also need cncf-cla check for volcano :)

@asifdxtreme
Copy link
Contributor

@asifdxtreme , I think we also need cncf-cla check for volcano :)

okay we will add it

@asifdxtreme
Copy link
Contributor

@asifdxtreme , I think we also need cncf-cla check for volcano :)

For CNCF Cla check we need webhook secret from CNCF, we contacted the admins to get the secret but they replied back saying they cannot enable webhook for external repo's as of now.
image
so probably we cannot enable CNCF cla check now for Volcano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduler panic happens when the GPU is lost on node
6 participants